import request from "@/utils/request"

// 查询hotelCustomer列表
export function listHotelCustomer(query) {
  return request({
    url: "/hotelCustomer/list",
    method: "get",
    params: query
  })
}

// 分页查询hotelCustomer列表
export function listHotelCustomerByPage(query) {
  return request({
    url: "/hotelCustomer/page",
    method: "get",
    params: query
  })
}

// 查询hotelCustomer
export function getHotelCustomer(id) {
  return request({
    url: "/hotelCustomer/" + id,
    method: "get"
  })
}

// 新增hotelCustomer
export function addHotelCustomer(data) {
  return request({
    url: "/hotelCustomer",
    method: "post",
    data: data
  })
}

// 修改hotelCustomer
export function updateHotelCustomer(data) {
  return request({
    url: "/hotelCustomer",
    method: "put",
    data: data
  })
}

// 删除hotelCustomer
export function deleteHotelCustomer(id) {
  return request({
    url: "/hotelCustomer/delete/" + id,
    method: "delete"
  })
}
